package com.usian.feign;

import com.usian.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "provider")
public interface UserFeign {
    @RequestMapping("findById/{id}")
    User findById(@PathVariable Integer id);

    @GetMapping("findByName")
    User findByName(@RequestParam Integer id);

    @PostMapping("findByUser")
    User findByUser(@RequestBody User user);
}
